import React, { Component } from 'react';
import './styles/common.css'
import Mender from './components/menber';
import Login from './components/menber/login';
import website from './components/myJump/website';
import Tab from "./tab/tab.js"
import Discuss from './components/discuss/index'
import newSing from './components/newSing/newSing'
import EverydayGo from './components/everydayGo/index'
import SingList from './components/singList/index'
import Bf from './components/play/father'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import Sidmsg from './components/sidmsg/sidmsg';
import Myfriends from './components/sidmsg/sidfri'
import RangeList from './components/rangeList/index'
import Tv from './components/TV/index'
import Live from './components/live/index'


class App extends Component {
  render() {
    return (

      <Router>
        <Switch>

          <Route path='/mymsg' component={Sidmsg} />
          <Route path='/friends' component={Myfriends} />
          <Route path='/singlist' component={SingList} />
          <Route path='/everyday' component={EverydayGo} />
          <Route path='/play' component={Bf} />
          {/* 点击跳转到登录选项页 */}
          <Route path="/menber" component={Mender} />
          {/* 登录页面 */}
          <Route path="/login" component={Login} />
          {/* 个人主页website */}
          <Route path="/website" component={website} />
        <Route path='/live' component={Live}/>
          <Route path='/tv' component={Tv}/>
          <Route path='/rangelist' component={RangeList}/>
          <Route path='/singlist' component={SingList}/>
          <Route path='/everyday' component={EverydayGo}/>
					<Route path='/play' component={Bf}/>
           {/* 点击跳转到登录选项页 */}
           <Route path="/menber" component={Mender} />
            {/* 登录页面 */}
            <Route path="/login" component={Login} />
            {/* 个人主页website */}
            <Route path="/website" component={website} />
          <Route path='/newSing' component={newSing} />
          <Route path='/discuss' component={Discuss} />
          <Route path="/" component={Tab} />

        </Switch>
      </Router>

    );
  }
}

export default App;
